package cc.yugu.yhdw.common.domain.basic;

import cc.yugu.yhdw.common.domain.StringIdEntity;
/**
 * 系统配置信息实体类
 * 
 * @Date:Created in 2018/7/25 14:26
 * @Author:
 * @Modified By: zjn 2018/7/25 14:26
 */ 
public class SystemConfig extends StringIdEntity {

    Integer categoryType;  //分类类型
    String categoryName;   //分类名称
    String configName;     //名称
    String configValue;    //配置值
    Integer readOnlyFlag;  //是否只读
    Integer showFlag;      //显示标识
    Integer valueType;     //值类型

    public enum ValueType {
        STRING(1),
        INT(2),
        SWITCH(3);

        private final int value;

        private ValueType(int value) {
            this.value = value;
        }

        public long getValue() {
            return value;
        }
    }

    public Integer getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(Integer categoryType) {
        this.categoryType = categoryType;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigValue() {
        return configValue;
    }

    public void setConfigValue(String configValue) {
        this.configValue = configValue;
    }

    public Integer getReadOnlyFlag() {
        return readOnlyFlag;
    }

    public void setReadOnlyFlag(Integer readOnlyFlag) {
        this.readOnlyFlag = readOnlyFlag;
    }

    public Integer getShowFlag() {
        return showFlag;
    }

    public void setShowFlag(Integer showFlag) {
        this.showFlag = showFlag;
    }

    public Integer getValueType() {
        return valueType;
    }

    public void setValueType(Integer valueType) {
        this.valueType = valueType;
    }
}
